//
//  CommonDefine.h
//  WestAir
//
//  Created by Henry on 16/8/17.
//  Copyright © 2016年 Henry. All rights reserved.
//

#ifndef CommonDefine_h
#define CommonDefine_h


#define READEDPOLICIES @"READEDPOLICIES"//阅读销售政策
#define COMMITINVENTORY @"COMMITINVENTORY"//提交配货盘点

/**
服务器地址
*/

/**
 * BASE URL 测试地址
 */


//线上地址
//#define ServiceURL @"https://pcs.westair.cn/K3CloudWebApiXBHK/"

//线上地址测试
//#define ServiceURL   @"https://pcs.westair.cn/K3CloudWebApiXBHKtest1/"


//#define ServiceURL @"https://pcs.westair.cn/K3CloudWebApiXBHKV2.0.1/"

//#define ServiceURL @"https://pcs.westair.cn/K3CloudWebApiXBHKTESTV2.0.1/"


//#define ServiceURL  @"https://pcs.westair.cn/K3CloudWebApiXBHKtestV2.0.3/"
#define ServiceURL @"https://pcs.westair.cn/K3CloudWebApiXBHKV2.0.3/"


/**
string 常用设置
 */

#define  STRING_FORMAT(a)  [NSString  stringWithFormat:@"%@",a]

/**
正则表达式
 
*/

#define CARDREGULAR @"(^\\d{15}$)|(^\\d{17}([0-9]|X|x)$)"//身份证正则表达式

/**
用户常用设置
*/
#define  BUTTONCORNER_R   4.0
#define  DEFAULT_RADIUS   5.0
#define  REQUEST_ERROR  @"获取数据失败"
#define  SALE_PLOY_READ @"SALE_PLOY_READ"
#define NO_NETWORK_POINT  @"网络连接有问题，请稍后再试。"

#define  USER_NAME @"userName" 
#define  PASS_WORD  @"passWord"
#define  ISMEMORY  @"isMemory"

#define ILLEGE_MESSAGE  @"输入有非法字符"
/**
layer  相关设置
*/
#define VIEW_CORNER(view,radius)			view.layer.cornerRadius = radius; \
view.layer.masksToBounds = YES;

#define BUTTONCORNER(view,radius)			view.layer.cornerRadius = 6; \
view.layer.masksToBounds = YES;

/**
 *  设备判断
 */

#define  isIphone5 [UIScreen mainScreen].bounds.size.width<=320

/**
color 相关设置
*/

#define ColorRGB(A,B,C) [UIColor colorWithRed:A/255.0f green:B/255.0f blue:C/255.0f alpha:1.0f]

#define  BG_GRAY_COLOR   ColorRGB(240,240,240)
#define  NORMAL_BULUE_COLOR   ColorRGB(139,45,216)

#define  ALERT_TITLE_COLOR ColorRGB(50,50,50)
#define THEME_NAVIGATIONBAR_COLOR           [UIColor colorWithRed:48/255.0f green:132/255.0f blue:153/255.0f alpha:1.0f]
#define THEME_BACKGROUND_COLOR              [UIColor colorWithRed:239.0/255.0 green:239.0/255.0f blue:244.0/255.0f alpha:1.0f]


/**
 *  尺寸
 */
#define SCREEN_BOUNDS   [[UIScreen mainScreen] bounds]
#define SCREEN_WIDTH    [UIScreen mainScreen].bounds.size.width
#define SCREEN_HEIGHT   [UIScreen mainScreen].bounds.size.height

#define buttonCorner21  21


#define buildVersion   [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];

/**
 *  相关输出数据
 */
#ifdef DEBUG
#define NSLog(...) NSLog(__VA_ARGS__)
#else
#define NSLog(...) {}
#endif

//注意事项  iphone    测试环境配置：bundle ID： com.westAir.onlineSaleTest
//                  正式环境地址：bundle ID：com.westAir.onlineSale
// 更改地址  


#endif /* CommonDefine_h */
